namespace Warehouse

open FSharp.Windows

type CompanyInfoController(repository : DataModel.Repository) = 
    inherit Controller<CompanyInfoEvents, CompanyInfoModel>()

    override this.InitModel _ = ()
    override this.Dispatcher = function
        | Save ok -> Sync(this.Save ok)

    member this.Save ok model = 
        model.SaveEntity repository    
        ok()
        

